#ifndef __VDRIVE_H_
#define __VDRIVE_H_

//#include <inttypes.h>
#include "Reader.h"

struct vdrive_READ
{
        unsigned char value;
        unsigned char isNew;
};

class vdrive
{
private:
        int pinSPICLK;
        int pinSPICS;
        int pinSPIDI;
        int pinSPIDO;

public:
        vdrive();
        vdrive(int pinCLK, int pinCS, int pinDI, int pinDO);
  
        vdrive_READ read();
        unsigned char readStatus();
        unsigned char write(unsigned char out);
        unsigned char writeString(char* in);
        void clearConsole();
        void init();

        void fopen(char* input);
	  char* fread(char* input);
        void fputs(char* data);
        void fclose(char* input);
};

#endif
